package JAVASE513;

import java.util.Scanner;

public class JAVAQAR {
    public static void main(String[] argc){
        Scanner sc=new Scanner(System.in);
        int num1= sc.nextInt();
        int num2= sc.nextInt();
        int r=num1,q=0;
        while(r>num2){
            r=r-num2;
            q++;
        }
        System.out.println("商为："+q);
        System.out.println("余数为"+r);
    }
}
